import Taro, { Component, Config } from '@tarojs/taro'
import { View, Image } from "@tarojs/components";
import './my.scss'

export default class My extends Component {
    /**
 * 指定config的类型声明为: Taro.Config
 *
 * 由于 typescript 对于 object 类型推导只能推出 Key 的基本类型
 * 对于像 navigationBarTextStyle: 'black' 这样的推导出的类型是 string
 * 提示和声明 navigationBarTextStyle: 'black' | 'white' 类型冲突, 需要显示声明类型
 */
    config: Config = {
        navigationBarTitleText: '我的'
    }

    componentWillMount() { }

    componentDidMount() { }

    componentWillUnmount() { }

    componentDidShow() { }

    componentDidHide() { }

    render() {
        return (
            <View className='boy'>
                <View className='title-view'>
                    <Image className='img-heard' src={require('../../../images/lp.jpg')} />
                    <View className='title-name'>买房摇号助手</View>
                </View>
                <View className='list-item'>
                    <View className='title-item'>联系客服</View>
                    <Image className='img' src={require('../../../images/right_jt.png')} />
                </View>
                <View className='view-line'></View>
                <View className='list-item'>
                    <View className='title-item'>使用帮助</View>
                    <Image className='img' src={require('../../../images/right_jt.png')}/>
                </View>
                <View className='view-line'></View>
                <View className='list-item'>
                    <View className='title-item'>意见反馈</View>
                    <Image className='img' src={require('../../../images/right_jt.png')} />
                </View>
                <View className='view-line'></View>
                <View className='list-item'>
                    <View className='title-item'>关于我们</View>
                    <Image className='img' src={require('../../../images/right_jt.png')} />
                </View>
                <View className='view-line'></View>
            </View>
        )
    }
}